package Events;

import java.awt.Dimension;
import java.io.Serializable;

import javax.swing.JPanel;
import javax.swing.JTextArea;

import structures.Spaceship;


public abstract class Event extends JPanel implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -3968055804626872649L;
	private String name;
	private String description;
	
	public Event(String name, String description){
		super();
		this.setPreferredSize(new Dimension(600,500));
		this.name = name;
		this.description = description;
	}
	
	public String getName() {
		return name;
	}

	public String getDescription() {
		return description;
	}

	abstract public void execute(Spaceship s);
	abstract public void execute(Spaceship s, JTextArea log);
}
